﻿using System;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections;
using VioletDevelopmentLaboratory.Net.Web.WebControls;
using VioletDevelopmentLaboratory.Net.Web.Configuration;

namespace VioletDevelopmentLaboratory.Net.Web.Component
{
	public abstract class BoardSearchPartBase : UserControl
	{
		protected override void OnInit(EventArgs e)
		{
			base.OnInit(e);

			if (this.Page.Header.FindControl("VWeb_Skin_JavaScript") == null)
			{
				Literal scriptLiteral = new Literal();
				scriptLiteral.ID = "VWeb_Skin_JavaScript";
				scriptLiteral.Text = "<script type=\"text/javascript\" src=\"" + base.ResolveUrl("javascript.js") + "\"></script>\r\n";
				this.Page.Header.Controls.Add(scriptLiteral);
			}
		}
	}
}
